package org.mics.organization.request;

import java.io.Serializable;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Size;

import org.mics.organization.enums.Sex;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 职工
 * @author mics
 * @date 2023-10-9
 * @version  1.0
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "增加/修改职工请求")
public class StaffRequest implements Serializable{
	
 	/**
	 * 序列号
	 */
	private static final long serialVersionUID = -7085513866248831101L;
	
	@Schema(description = "员工id(新增不传修改传)")
	private String id;
	
	@Schema(description = "员工姓名",required = true)
	@Size(min = 2, max = 32, message = "员工姓名长度2-32位")
    @NotBlank(message = "员工姓名不能为空")
	private String name;
    
	@Schema(description = "员工性别",required = true)
	@NotBlank(message = "员工性别不能为空")
	private Sex sex;
	
	@Schema(description = "员工工号")
	@Size(min = 1,max = 32,message = "员工工号长度1-32位")
	private String jobNumber;
	
	@Schema(description = "手机号")
	@Size(min = 11,max = 11,message = "手机号长度11位")
	 private String mobile;
	
	@Schema(description = "部门id")
	private String departmentId;
	
	@Schema(description = "备注")
	@Size(min = 2,max = 256,message = "备注长度2-256位")
    private String remark;

}
